package com.cz.design.structure.decorator;

/**
 * 美颜装饰器
 */
public class MeiYanDecorator implements TikTokDecorator {

    private ManTikTok manTikTok;

    public MeiYanDecorator(ManTikTok manTikTok) {
        this.manTikTok = manTikTok;
    }

    @Override
    public void tiktok() {
        enableMeiYan();
        manTikTok.tiktok();
    }

    /**
     * 定义的增强功能
     */
    @Override
    public void enableMeiYan() {
        System.out.println("开启美颜功能...");
    }
}
